package com.zhenhunfan.hello.Controller;

import com.zhenhunfan.hello.service.Hello;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>Title:</p>
 * <p>Description:</p>
 *
 * @author zhanghong
 * @date 2023/9/10
 */
@RestController
public class ConsumerController {

    @DubboReference
    Hello helloService;

    @GetMapping("/test")
    public String test(){
        return helloService.sayHi("张鈜");
    }
}
